public class Test {
    public static void main(String[] args) {
        String str="hello";
        char[] ch=str.toCharArray();
        for (char c: ch) {
            System.out.print(c);
        }
        System.out.println("-------------------");
      ch[1]='h';
        for (char c: ch) {
            System.out.print(c);
        }
    }
}
